<?php
class newsViewModel extends viewModel {
    public $table = "news";
    public $view = array(
        "category" => array(
            "join_type" => "inner",
            "on" => "news.catid = category.catid"
        ),
        "user" => array(
            "join_type" => "inner",
            "on" => "news.uid = user.uid"
        ),
		"news_data"=>array(
			"join_type" => "inner",
			"on" => "news_data.nid = news.id" 
		)
    );

}

?>
